import axios from 'axios';

const api = axios.create({
  baseURL: process.env.NEXT_PUBLIC_API_BASE_URL || 'http://120.26.138.4:3000',
  headers: {
    'Content-Type': 'application/json',
  },
  // withCredentials: true, // 允许跨域携带 Cookie
});

export default api;